package com.brk.socket;

import com.brk.socket.server.CustomChannelInitializer;
import io.netty.channel.ChannelInitializer;
import io.netty.channel.socket.SocketChannel;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.Bean;

@SpringBootApplication
@MapperScan("com.brk.socket.mapper")
public class SocketApplication {

    public static void main(String[] args) {
        SpringApplication.run(SocketApplication.class, args);
    }

    @Bean
    public ChannelInitializer<SocketChannel> channelInitializer() {
        return new CustomChannelInitializer();
    }

}
